package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BywEmployeeImportViteaMapper;
import com.ruoyi.system.domain.BywEmployeeImportVitea;
import com.ruoyi.system.service.IBywEmployeeImportViteaService;

/**
 * 员工导入简历Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-09
 */
@Service
public class BywEmployeeImportViteaServiceImpl implements IBywEmployeeImportViteaService 
{
    @Autowired
    private BywEmployeeImportViteaMapper bywEmployeeImportViteaMapper;

    /**
     * 查询员工导入简历
     * 
     * @param userPhone 员工导入简历主键
     * @return 员工导入简历
     */
    @Override
    public BywEmployeeImportVitea selectBywEmployeeImportViteaByUserPhone(String userPhone)
    {
        return bywEmployeeImportViteaMapper.selectBywEmployeeImportViteaByUserPhone(userPhone);
    }

    /**
     * 查询员工导入简历列表
     * 
     * @param bywEmployeeImportVitea 员工导入简历
     * @return 员工导入简历
     */
    @Override
    public List<BywEmployeeImportVitea> selectBywEmployeeImportViteaList(BywEmployeeImportVitea bywEmployeeImportVitea)
    {
        return bywEmployeeImportViteaMapper.selectBywEmployeeImportViteaList(bywEmployeeImportVitea);
    }

    @Override
    public List<BywEmployeeImportVitea> selectBywEmployeeImportViteaByUserPhones(String[] userPhones)
    {
        return bywEmployeeImportViteaMapper.selectBywEmployeeImportViteaByUserPhones(userPhones);
    }

    /**
     * 新增员工导入简历
     * 
     * @param bywEmployeeImportVitea 员工导入简历
     * @return 结果
     */
    @Override
    public int insertBywEmployeeImportVitea(BywEmployeeImportVitea bywEmployeeImportVitea)
    {
        bywEmployeeImportVitea.setCreateTime(DateUtils.getNowDate());
        return bywEmployeeImportViteaMapper.insertBywEmployeeImportVitea(bywEmployeeImportVitea);
    }

    /**
     * 修改员工导入简历
     * 
     * @param bywEmployeeImportVitea 员工导入简历
     * @return 结果
     */
    @Override
    public int updateBywEmployeeImportVitea(BywEmployeeImportVitea bywEmployeeImportVitea)
    {
        bywEmployeeImportVitea.setUpdateTime(DateUtils.getNowDate());
        return bywEmployeeImportViteaMapper.updateBywEmployeeImportVitea(bywEmployeeImportVitea);
    }

    /**
     * 批量删除员工导入简历
     * 
     * @param userPhones 需要删除的员工导入简历主键
     * @return 结果
     */
    @Override
    public int deleteBywEmployeeImportViteaByUserPhones(String[] userPhones)
    {
        return bywEmployeeImportViteaMapper.deleteBywEmployeeImportViteaByUserPhones(userPhones);
    }

    /**
     * 删除员工导入简历信息
     * 
     * @param userPhone 员工导入简历主键
     * @return 结果
     */
    @Override
    public int deleteBywEmployeeImportViteaByUserPhone(String userPhone)
    {
        return bywEmployeeImportViteaMapper.deleteBywEmployeeImportViteaByUserPhone(userPhone);
    }
}
